package cn.lucky.springcloud.service;

import cn.lucky.springcloud.dao.ConfigClientDao;
import cn.lucky.springcloud.entities.Payment;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author lingpeng.jiang
 * @create 2021-01-20-22:40
 */
@Service
public class ConfigClientService {

    @Resource
    private ConfigClientDao configClientDao;

    public int create(Payment payment) {
        return configClientDao.create(payment);
    }

    public Payment getPaymentById(Long id) {
        return configClientDao.getPaymentById(id);
    }

    public List<Payment> queryPayment() {
        return configClientDao.queryPayment();
    }
}
